package pearson.automation.forms.courseDetails;

import org.openqa.selenium.By;

import framework.BaseForm;
import framework.elements.Label;

/**
 * Form is representing Popup message after a course details saving
 * 
 */
public class CourseDetailsSavedMessageForm extends BaseForm {
    private static Label detailsSaved = new Label(By.cssSelector("*[class*='course-settings-popup-module']"), "Info message");
    
    public CourseDetailsSavedMessageForm() {
        super(detailsSaved.getLocator(), "Course Details saved message");
    }
    
    public boolean isMessageBeenShown() {
        return detailsSaved.isPresent();
    }
    
    public void waitForMessageDissapearing() {
        detailsSaved.waitForElementDissapear();
    }
}
